package mapper.marketingMapper;

import entity.marketingEntity.Hotmarketing;
import entity.marketingEntity.NewMarketingCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotmarketingMapper {
    List<Hotmarketing> selectAll(NewMarketingCondition condition);

    int deleteByPrimaryKey(Integer hotmarketing_id);

    int insert(Hotmarketing record);

    int insertSelective(Hotmarketing record);

    Hotmarketing selectByPrimaryKey(Integer hotmarketing_id);

    int updateByPrimaryKeySelective(Hotmarketing record);

    int updateByPrimaryKey(Hotmarketing record);
    int updateHotMarkingRecommend(@Param("id") Integer id, @Param("recommend")  Integer recommend);

    int updateHotMarkingSort(@Param("id") Integer id,@Param("sort")  Integer sort);
}